package work2;

import java.util.Scanner;

public class Quetion1 {
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);

		float x, y;

		System.out.println("  ==== 简易计算器 ==== ");
		System.out.print("请输入第一个操作数：x = ");
		x = input.nextFloat();
		System.out.print("请输入第二个操作数：y = ");
		y = input.nextFloat();
		input.close();

		System.out.println("运算结果如下：");
		System.out.printf("x + y = %.1f\n", x + y);
		System.out.printf("x - y = %.1f\n", x - y);
		System.out.printf("x * y = %.1f\n", x * y);
		System.out.printf("x / y = %.1f\n", x / y);
	}

}